<?php
/**
 * Created by PhpStorm.
 * User: 勇林
 * Date: 2015/12/11
 * Time: 17:11
 */

namespace app\api;


class Response
{

    public static function setHeader(){
        \Yii::$app->response->headers->set("Access-Control-Allow-Origin", "*");
        \Yii::$app->response->headers->set("Access-Control-Allow-Headers", "X-Requested-With");
        \Yii::$app->response->headers->set("Cache-Control", "no-cache");
    }

}